//
//  CacheManager.h
//  都市艺术之旅
//
//  Created by simon on 10-9-11.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 *   管理缓存的类
 */
@interface CacheManager : NSObject {

}

//取得缓存的目录地址
+(NSString*)getCacheDirectory;

//清理缓存
+(BOOL)clearCache;

//往缓存里面放图片
+(BOOL)setImage:(UIImage*)image withImageURLString:(NSString*)imageURLString;

//从缓存中取出某个图片
+(UIImage*)getImageAccordingToURLString:(NSString*)imageURLString;

//往缓存里面放xml
+(BOOL)setXML:(NSString*)xmlString withFileName:(NSString*)xmlFileName;

//获取到缓存中的数据
+(NSString*)getXMLStringWithFileName:(NSString*)xmlFileName;

//获取bundle里面的数据
+(NSString*)getXMLStringFromBundleWithFileName:(NSString*)xmlFileName;

@end
